package dp.gr03.payroll.generalTransactions;

import dp.gr03.payroll.classifications.SalariedClassification;
import dp.gr03.payroll.payrollDomain.PaymentClassification;
import dp.gr03.payroll.payrollDomain.PaymentSchedule;
import dp.gr03.payroll.schedules.MonthlySchedule;

public class AddSalariedEmployee extends AddEmployeeTransaction
{
    protected double salary;

    public AddSalariedEmployee(int id, String name, String address, double salary)
    {
        super(id, name, address);
        this.salary = salary;
    }

    @Override
    protected PaymentSchedule getPaymentSchedule()
    {
        return new MonthlySchedule();
    }

    @Override
    protected PaymentClassification getClassification()
    {
        return new SalariedClassification(salary);
    }

}
